package com.baor.controller;

import com.baor.base.util.R;
import com.baor.feign.MovieManagerFeign;
import com.baor.service.SMovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class SySMovieController {
    @Autowired
    private SMovieService sMovieService;

    @RequestMapping(value="/movieList")
    public R movieList(@RequestBody Map<String,Object> params){
        return this.sMovieService.movieList(params);
    }
    @RequestMapping(value="/movieInfo")
    public R movieInfo(){
        return this.sMovieService.movieInfo();
    }

}
